import java.time.LocalDateTime;
import java.time.Month;
import java.util.Date;

public class DATA {

    public static void main(String[] args) {
//        Date date = new Date();
//        Date date1 = new Date(123,2,5);
//        System.out.println(date);
//        System.out.println(date1);

        LocalDateTime localDateTime = LocalDateTime.now();
        System.out.println(localDateTime);
        int year = localDateTime.getYear();
        int month = LocalDateTime.now().getMonthValue();
        int day = localDateTime.getDayOfMonth();
        int hour=localDateTime.getHour();
        int minute=localDateTime.getMinute();
        int second=localDateTime.getSecond();
        System.out.println("年："+year);
        System.out.println("月："+month);
        System.out.println("日："+day);
        System.out.println("时："+hour);
        System.out.println("分："+minute);
        System.out.println("秒："+second);


    }
}
